package top.ucat.x.service.sso.server.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.ucat.box.starter.oauth.common.annotation.Ignore;

/**
 * @Auther: Jun
 * @Date: 2020/3/28 16:43
 * @Description:
 */
@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("auth/ignore")
    @Ignore
    public String ignoreAuth() {
        return "ignore auth";
    }

    @GetMapping("auth/need")
    public String needAuth() {
        return "need auth";
    }
}
